import axios from './config/axios.default.config';
import defaultConfig from "@/config/config.default";

class TipOffService{
    async tipBlog(data) {
        return axios.post(`${defaultConfig.baseApiUrl}/tipOff/article`, data);
    }
    async tipOffList(args) {
        return axios.get(`${defaultConfig.baseApiUrl}/tipOff/tipOffList`, {
            params:args
        });
    }
    //忽略 删除
    async overtipOff(tipOffId) {
        return axios.delete(`${defaultConfig.baseApiUrl}/tipOff/deleteTipOff/${tipOffId}`,);
    }
    //统一举报 删除文章 和举报信息

    async agreetipOff(tipOffId) {
        return axios.delete(`${defaultConfig.baseApiUrl}/tipOff//article/${tipOffId}`,);
    }
}
export default new TipOffService()


